import java.util.Scanner;

public class Generator {

    public static Product createProduct(String str, String deli){
        String[] strings = str.split(deli);
        return new Product(strings[0], Integer.parseInt(strings[1]), Double.parseDouble(strings[2]));
    }

    public static String getDeli(String str){
        for (int i = 0; i < str.length(); i++) {
            char ch = str.charAt(i);
            if(ch >= 'a' && ch <= 'z') {
                continue;
            }
            return ch+"";
        }
        return null;
    }

    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        while(scanner.hasNext()){
            String str = scanner.nextLine();
            String deli = getDeli(str);
            Product product = createProduct(str,deli);
            System.out.println(product.toString());
        }
    }
}
